package com.stone.boot.pipeline.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.service.Tag;
import springfox.documentation.spring.web.plugins.Docket;

/**
 * swagger标签配置
 *
 * @author Mr_wenpan@163.com 2021/08/05 21:44
 */
@Configuration
public class StonePipelineSwaggerTagConfig {

    public static final String PIPELINE = "PIPELINE";
    public static final String PIPELINE_NODE = "PIPELINE_NODE";

    @Autowired
    public StonePipelineSwaggerTagConfig(Docket docket) {
        docket.tags(new Tag(PIPELINE, "流水线"))
                .tags(new Tag(PIPELINE_NODE, "流水线节点"));
    }
}
